﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ToDoListReminder.Data
{
	/// <summary>
	/// Holds the status data.
	/// </summary>
	public class Status : BaseDataObject
	{
		#region Fields

		/// <summary>
		/// Holds the projects count.
		/// </summary>
		private string projects_;

		/// <summary>
		/// Holds the tasks count.
		/// </summary>
		private string tasks_;
		#endregion

		#region Properties

		/// <summary>
		/// Gets or sets the projects status.
		/// </summary>
		public string Projects
		{
			get
			{
				if (String.IsNullOrEmpty(projects_))
				{
					projects_ = "0 projects";
				}
				return projects_;
			}

			set
			{
				projects_ = value;
				SetPropertyChanged("Projects");
			}
		}

		/// <summary>
		/// Gets or sets the tasks status.
		/// </summary>
		public string Tasks
		{
			get
			{
				if (String.IsNullOrEmpty(tasks_))
				{
					projects_ = "0 tasks";
				}
				return tasks_;
			}

			set
			{
				tasks_ = value;
				SetPropertyChanged("Tasks");
			}
		}
		#endregion

		protected override void Save()
		{
			throw new NotImplementedException();
		}

		protected override void Restore()
		{
			throw new NotImplementedException();
		}
	}
}
